<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>影院列表</title>
    <link type="text/css" rel="stylesheet" href="/css/index.css">
    <link type="text/css" rel="stylesheet" href="/css/list.css">
    <!-- 引入layui样式 -->
    <link rel="stylesheet" type="text/css" href="https://cdn.staticfile.org/layui/2.7.6/css/layui.css">
</head>
<body>
<div class="topbar">
    <a href="#" onclick="history.back(); return false;">返回上一级<span></span></a>
    <p style="color: lightgreen">影院列表</p>

    <div class="floating-div">
        <p style="font-size: 15px">便利猫购票系统<br/><span th:if="${session.userInfo != null}"
                                                            th:text="'欢迎：' + ${session.userInfo.getUUsername()}">用户名</span>
        </p>
    </div>
</div>

<div class="layui-container" style="margin-top: 20px">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <table class="layui-table">
                <thead>
                <tr>
                    <th>行数</th>
                    <th>ID</th>
                    <th>影院名称</th>
                    <th>联系方式</th>
                    <th>影院地址</th>
                    <th>首营业日期</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="cinema,status:${getCinemasByMovieId.cinemaList}">
                    <td th:text="${status.count}">行数</td>
                    <td th:text="${cinema.getCId()}">ID</td>
                    <td th:text="${cinema.getCName()}">影院名称</td>
                    <td th:text="${cinema.getCPhone()}">联系方式</td>
                    <td th:text="${cinema.getCAddress()}">影院地址</td>
                    <td th:text="${#dates.format(cinema.getCDate(),'yyyy 年 MM 月 dd 日')}">首营业日期</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>


<!-- 引入 jQuery 库 -->
<script src="https://cdn.staticfile.org/jquery/3.6.4/jquery.min.js"></script>

<!-- 引入 layui JavaScript -->
<script src="https://cdn.staticfile.org/layui/2.7.6/layui.min.js"></script>

<script>
    // 绑定清空按钮点击事件
    $('.search-reset-btn').click(function () {
        $('#search-input').val('');
    });
</script>

</body>
</html>